package com.fare.taluo.vo.config.city;


/**
 * 城市选择框VO
 * @author xiangsf 2013-1-13
 *
 */
public class CitySelectVO implements Comparable<CitySelectVO>{

	private String companyCode;
	
	private String companyName;
	
	private Long id;
	
	private String code;
	
	private String name;

	private String shortSpell;
	
	private String fullSpell;
	
	private boolean ishot;
	
	private boolean isInternation;

	public CitySelectVO(){}
	
	public CitySelectVO(Long id, String code,
			String name, String shortSpell, String fullSpell, boolean ishot,
			boolean isInternation) {
		super();
		this.id = id;
		this.code = code;
		this.name = name;
		this.shortSpell = shortSpell;
		this.fullSpell = fullSpell;
		this.ishot = ishot;
		this.isInternation = isInternation;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getShortSpell() {
		return shortSpell;
	}

	public void setShortSpell(String shortSpell) {
		this.shortSpell = shortSpell;
	}

	public String getFullSpell() {
		return fullSpell;
	}

	public void setFullSpell(String fullSpell) {
		this.fullSpell = fullSpell;
	}

	public boolean isIshot() {
		return ishot;
	}

	public void setIshot(boolean ishot) {
		this.ishot = ishot;
	}

	public boolean isInternation() {
		return isInternation;
	}

	public void setInternation(boolean isInternation) {
		this.isInternation = isInternation;
	}

	@Override
	public int compareTo(CitySelectVO o) {
		return this.getFullSpell()!=null ? this.getFullSpell().compareTo(o.getFullSpell()):
			this.code.compareTo(o.getCode());
	}

	@Override
	public String toString() {
		return "CitySelectVO [companyCode=" + companyCode + ", companyName="
				+ companyName + ", id=" + id + ", code=" + code + ", name="
				+ name + ", shortSpell=" + shortSpell + ", fullSpell="
				+ fullSpell + ", ishot=" + ishot + ", isInternation="
				+ isInternation + "]";
	}
	
	
}
